from building import *

cwd  = GetCurrentDir()

src = []
#src += ["ble.c"]
#src += ["rw_ble/ip/ahi/src/ahi.c"]
#src += ["rw_ble/ip/ahi/src/ahi_task.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapc/gapc.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapc/gapc_hci.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapc/gapc_sig.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapc/gapc_task.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapm/gapm.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapm/gapm_hci.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapm/gapm_task.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/gapm/gapm_util.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/smpc/smpc.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/smpc/smpc_api.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/smpc/smpc_crypto.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/smpc/smpc_util.c"]
#src += ["rw_ble/ip/ble/hl/src/gap/smpm/smpm_api.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/attc/attc.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/attm/attm.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/attm/attm_db.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/atts/atts.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/gattc/gattc.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/gattc/gattc_task.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/gattm/gattm.c"]
#src += ["rw_ble/ip/ble/hl/src/gatt/gattm/gattm_task.c"]
#src += ["rw_ble/ip/ble/hl/src/l2c/l2cc/l2cc.c"]
#src += ["rw_ble/ip/ble/hl/src/l2c/l2cc/l2cc_lecb.c"]
#src += ["rw_ble/ip/ble/hl/src/l2c/l2cc/l2cc_pdu.c"]
#src += ["rw_ble/ip/ble/hl/src/l2c/l2cc/l2cc_sig.c"]
#src += ["rw_ble/ip/ble/hl/src/l2c/l2cc/l2cc_task.c"]
#src += ["rw_ble/ip/ble/hl/src/l2c/l2cm/l2cm.c"]
#src += ["rw_ble/ip/ble/hl/src/prf/prf.c"]
#src += ["rw_ble/ip/ble/hl/src/prf/prf_utils.c"]
#src += ["rw_ble/ip/ble/hl/src/rwble_hl/rwble_hl.c"]
#src += ["rw_ble/ip/ble/ll/src/em/em_buf.c"]
#src += ["rw_ble/ip/ble/ll/src/llc/llc.c"]
#src += ["rw_ble/ip/ble/ll/src/llc/llc_ch_asses.c"]
#src += ["rw_ble/ip/ble/ll/src/llc/llc_hci.c"]
#src += ["rw_ble/ip/ble/ll/src/llc/llc_llcp.c"]
#src += ["rw_ble/ip/ble/ll/src/llc/llc_task.c"]
#src += ["rw_ble/ip/ble/ll/src/llc/llc_util.c"]
#src += ["rw_ble/ip/ble/ll/src/lld/lld.c"]
#src += ["rw_ble/ip/ble/ll/src/lld/lld_evt.c"]
#src += ["rw_ble/ip/ble/ll/src/lld/lld_pdu.c"]
#src += ["rw_ble/ip/ble/ll/src/lld/lld_sleep.c"]
#src += ["rw_ble/ip/ble/ll/src/lld/lld_util.c"]
#src += ["rw_ble/ip/ble/ll/src/lld/lld_wlcoex.c"]
#src += ["rw_ble/ip/ble/ll/src/llm/llm.c"]
#src += ["rw_ble/ip/ble/ll/src/llm/llm_hci.c"]
#src += ["rw_ble/ip/ble/ll/src/llm/llm_task.c"]
#src += ["rw_ble/ip/ble/ll/src/llm/llm_util.c"]
#src += ["rw_ble/ip/ble/ll/src/rwble/rwble.c"]
#src += ["rw_ble/ip/ble/profiles/ancs/ancsc/src/ancsc.c"]
#src += ["rw_ble/ip/ble/profiles/ancs/ancsc/src/ancsc_task.c"]
#src += ["rw_ble/ip/ble/profiles/anp/anpc/src/anpc.c"]
#src += ["rw_ble/ip/ble/profiles/anp/anpc/src/anpc_task.c"]
#src += ["rw_ble/ip/ble/profiles/anp/anps/src/anps.c"]
#src += ["rw_ble/ip/ble/profiles/anp/anps/src/anps_task.c"]
#src += ["rw_ble/ip/ble/profiles/bas/basc/src/basc.c"]
#src += ["rw_ble/ip/ble/profiles/bas/basc/src/basc_task.c"]
#src += ["rw_ble/ip/ble/profiles/bas/bass/src/bass.c"]
#src += ["rw_ble/ip/ble/profiles/bas/bass/src/bass_task.c"]
#src += ["rw_ble/ip/ble/profiles/blp/blpc/src/blpc.c"]
#src += ["rw_ble/ip/ble/profiles/blp/blpc/src/blpc_task.c"]
#src += ["rw_ble/ip/ble/profiles/blp/blps/src/blps.c"]
#src += ["rw_ble/ip/ble/profiles/blp/blps/src/blps_task.c"]
#src += ["rw_ble/ip/ble/profiles/cpp/cppc/src/cppc.c"]
#src += ["rw_ble/ip/ble/profiles/cpp/cppc/src/cppc_task.c"]
#src += ["rw_ble/ip/ble/profiles/cpp/cpps/src/cpps.c"]
#src += ["rw_ble/ip/ble/profiles/cpp/cpps/src/cpps_task.c"]
#src += ["rw_ble/ip/ble/profiles/cscp/cscpc/src/cscpc.c"]
#src += ["rw_ble/ip/ble/profiles/cscp/cscpc/src/cscpc_task.c"]
#src += ["rw_ble/ip/ble/profiles/cscp/cscps/src/cscps.c"]
#src += ["rw_ble/ip/ble/profiles/cscp/cscps/src/cscps_task.c"]
#src += ["rw_ble/ip/ble/profiles/dis/disc/src/disc.c"]
#src += ["rw_ble/ip/ble/profiles/dis/disc/src/disc_task.c"]
#src += ["rw_ble/ip/ble/profiles/dis/diss/src/diss.c"]
#src += ["rw_ble/ip/ble/profiles/dis/diss/src/diss_task.c"]
#src += ["rw_ble/ip/ble/profiles/FFE0/src/ffe0s.c"]
#src += ["rw_ble/ip/ble/profiles/FFE0/src/ffe0s_task.c"]
#src += ["rw_ble/ip/ble/profiles/FFF0/src/fff0s.c"]
#src += ["rw_ble/ip/ble/profiles/FFF0/src/fff0s_task.c"]
#src += ["rw_ble/ip/ble/profiles/AIS/src/AIS.c"]
#src += ["rw_ble/ip/ble/profiles/AIS/src/AIS_task.c"]
#src += ["rw_ble/ip/ea/src/ea.c"]
#src += ["rw_ble/ip/hci/src/hci.c"]
#src += ["rw_ble/ip/hci/src/hci_fc.c"]
#src += ["rw_ble/ip/hci/src/hci_msg.c"]
#src += ["rw_ble/ip/hci/src/hci_tl.c"]
#src += ["rw_ble/ip/hci/src/hci_util.c"]
#src += ["rw_ble/modules/app/src/app.c"]
#src += ["rw_ble/modules/app/src/app_sec.c"]
#src += ["rw_ble/modules/app/src/app_ffe0.c"]
#src += ["rw_ble/modules/app/src/app_fff0.c"]
#src += ["rw_ble/modules/app/src/app_task.c"]
#src += ["rw_ble/modules/ali_sdk/src/ais_sdk.c"]
#src += ["rw_ble/modules/common/src/common_list.c"]
#src += ["rw_ble/modules/common/src/common_utils.c"]
#src += ["rw_ble/modules/common/src/RomCallFlash.c"]
#src += ["rw_ble/modules/dbg/src/dbg.c"]
#src += ["rw_ble/modules/dbg/src/dbg_mwsgen.c"]
#src += ["rw_ble/modules/dbg/src/dbg_swdiag.c"]
#src += ["rw_ble/modules/dbg/src/dbg_task.c"]
#src += ["rw_ble/modules/h4tl/src/h4tl.c"]
#src += ["rw_ble/modules/ke/src/kernel.c"]
#src += ["rw_ble/modules/ke/src/kernel_event.c"]
#src += ["rw_ble/modules/ke/src/kernel_mem.c"]
#src += ["rw_ble/modules/ke/src/kernel_msg.c"]
#src += ["rw_ble/modules/ke/src/kernel_queue.c"]
#src += ["rw_ble/modules/ke/src/kernel_task.c"]
#src += ["rw_ble/modules/ke/src/kernel_timer.c"]
#src += ["rw_ble/modules/rwip/src/rwip.c"]
#src += ["rw_ble/plf/refip/src/arch/main/arch_main.c"]
#src += ["rw_ble/modules/rf/src/ble_rf_xvr.c"]
#src += ["rw_ble/modules/ali_sdk/src/aes/aes.c"]

path = []
path += [cwd + '/']
path += [cwd + '/rw_ble/ip/ahi/api']
path += [cwd + '/rw_ble/ip/ble/hl/api']
path += [cwd + '/rw_ble/ip/ble/hl/inc']
path += [cwd + '/rw_ble/ip/ble/hl/src/gap/gapc']
path += [cwd + '/rw_ble/ip/ble/hl/src/gap/gapm']
path += [cwd + '/rw_ble/ip/ble/hl/src/gap/smpc']
path += [cwd + '/rw_ble/ip/ble/hl/src/gap/smpm']
path += [cwd + '/rw_ble/ip/ble/hl/src/gap']
path += [cwd + '/rw_ble/ip/ble/hl/src/gatt/attc']
path += [cwd + '/rw_ble/ip/ble/hl/src/gatt/attm']
path += [cwd + '/rw_ble/ip/ble/hl/src/gatt/atts']
path += [cwd + '/rw_ble/ip/ble/hl/src/gatt']
path += [cwd + '/rw_ble/ip/ble/hl/src/gatt/gattc']
path += [cwd + '/rw_ble/ip/ble/hl/src/gatt/gattm']
path += [cwd + '/rw_ble/ip/ble/hl/src/l2c/l2cc']
path += [cwd + '/rw_ble/ip/ble/hl/src/l2c/l2cm']
path += [cwd + '/rw_ble/ip/ble/ll/src/em']
path += [cwd + '/rw_ble/ip/ble/ll/src/llc']
path += [cwd + '/rw_ble/ip/ble/ll/src/lld']
path += [cwd + '/rw_ble/ip/ble/ll/src/llm']
path += [cwd + '/rw_ble/ip/ble/ll/src/rwble']
path += [cwd + '/rw_ble/ip/ble/profiles/ancs/ancsc/api']
path += [cwd + '/rw_ble/ip/ble/profiles/ancs']
path += [cwd + '/rw_ble/ip/ble/profiles/anp/anpc/api']
path += [cwd + '/rw_ble/ip/ble/profiles/anp/anpc/src']
path += [cwd + '/rw_ble/ip/ble/profiles/anp/anps/api']
path += [cwd + '/rw_ble/ip/ble/profiles/anp/anps/src']
path += [cwd + '/rw_ble/ip/ble/profiles/anp']
path += [cwd + '/rw_ble/ip/ble/profiles/bas/basc/api']
path += [cwd + '/rw_ble/ip/ble/profiles/bas/basc/src']
path += [cwd + '/rw_ble/ip/ble/profiles/bas/bass/api']
path += [cwd + '/rw_ble/ip/ble/profiles/bas/bass/src']
path += [cwd + '/rw_ble/ip/ble/profiles/blp/blpc/api']
path += [cwd + '/rw_ble/ip/ble/profiles/blp/blpc/src']
path += [cwd + '/rw_ble/ip/ble/profiles/blp/blps/api']
path += [cwd + '/rw_ble/ip/ble/profiles/blp/blps/src']
path += [cwd + '/rw_ble/ip/ble/profiles/blp']
path += [cwd + '/rw_ble/ip/ble/profiles/cpp/cppc/api']
path += [cwd + '/rw_ble/ip/ble/profiles/cpp/cppc/src']
path += [cwd + '/rw_ble/ip/ble/profiles/cpp/cpps/api']
path += [cwd + '/rw_ble/ip/ble/profiles/cpp/cpps/src']
path += [cwd + '/rw_ble/ip/ble/profiles/cpp']
path += [cwd + '/rw_ble/ip/ble/profiles/cscp/cscpc/api']
path += [cwd + '/rw_ble/ip/ble/profiles/cscp/cscpc/src']
path += [cwd + '/rw_ble/ip/ble/profiles/cscp/cscps/api']
path += [cwd + '/rw_ble/ip/ble/profiles/cscp/cscps/src']
path += [cwd + '/rw_ble/ip/ble/profiles/cscp']
path += [cwd + '/rw_ble/ip/ble/profiles/dis/disc/api']
path += [cwd + '/rw_ble/ip/ble/profiles/dis/disc/src']
path += [cwd + '/rw_ble/ip/ble/profiles/dis/diss/api']
path += [cwd + '/rw_ble/ip/ble/profiles/dis/diss/src']
path += [cwd + '/rw_ble/ip/ble/profiles/FFE0/api']
path += [cwd + '/rw_ble/ip/ble/profiles/FFE0/api']
path += [cwd + '/rw_ble/ip/ble/profiles/FFF0/api']
path += [cwd + '/rw_ble/ip/ble/profiles/FFF0/api']
path += [cwd + '/rw_ble/ip/ble/profiles/AIS/api']
path += [cwd + '/rw_ble/ip/ble/profiles/btl/api']
path += [cwd + '/rw_ble/ip/ea/api']
path += [cwd + '/rw_ble/ip/em/api']
path += [cwd + '/rw_ble/ip/hci/api']
path += [cwd + '/rw_ble/ip/hci/src']
path += [cwd + '/rw_ble/modules/app/api']
path += [cwd + '/rw_ble/modules/app/src']
path += [cwd + '/rw_ble/modules/ali_sdk/api']
path += [cwd + '/rw_ble/modules/ali_sdk/src']
path += [cwd + '/rw_ble/modules/btl']
path += [cwd + '/rw_ble/modules/common/api']
path += [cwd + '/rw_ble/modules/dbg/api']
path += [cwd + '/rw_ble/modules/h4tl/api']
path += [cwd + '/rw_ble/modules/ke/api']
path += [cwd + '/rw_ble/modules/ke/src']
path += [cwd + '/rw_ble/modules/rwip/api']
path += [cwd + '/rw_ble/modules/rf/api']
path += [cwd + '/rw_ble/plf/refip/src/arch']
path += [cwd + '/rw_ble/plf/refip/src/arch/boot']
path += [cwd + '/rw_ble/plf/refip/src/arch/compiler']
path += [cwd + '/rw_ble/plf/refip/src/arch/ll']
path += [cwd + '/rw_ble/plf/refip/src/arch']
path += [cwd + '/rw_ble/plf/refip/src/build/ble_full/reg/fw']
path += [cwd + '/rw_ble/plf/refip/src/driver/reg']
path += [cwd + '/rw_ble/plf/refip/src/driver/uart']
path += [cwd + '/rw_ble/plf/refip/src/rom/common']
path += [cwd + '/rw_ble/plf/refip/src/driver/ble_icu']  

ble_lib_name = 'ble'

if (GetDepend('CFG_USE_BLE_PS') == 1):
    ble_lib_name += '_ps'

if (GetDepend('RT_USING_BLE')):
	print 'using rwnx_ble: lib' + ble_lib_name + '.a'

libs = [ble_lib_name]
libpath = [cwd + '/']

cppdefines = ['CFG_SUPPORT_BLE']

group = DefineGroup('beken_ble', src, depend = ['RT_USING_BLE'], CPPPATH = path, CPPDEFINES = cppdefines, LIBS = libs, LIBPATH = libpath)

Return('group')
